import java.util.Scanner;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-02-20
 * Time:21:22
 */
public class Text {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("长和宽：");
        double n= sc.nextDouble();
        double y=sc.nextDouble();
        Rectangle fw =new Rectangle();
        fw.setLength(n);
        fw.setWidth(y);
        System.out.println("面积是："+fw.getArea()+"周长是："+fw.getgrith());
    }
}
